public class Module{
    //属性
    private String name;
    private int num;
    //局部代码块
    {
        System.out.println("局部代码块");
        
    }
    //构造方法
    public Module(){ 
        System.out.println("无参构造方法");
    }
    public Module(String name,int num){  
        this.name = name;
        this.num = num;
        System.out.println("有参构造方法");
    }
}